import request from '@/utils/request'

// 查询电-集中器管理列表
export function listElectricityConcentrator(query) {
  return request({
    url: '/basedata/electricityConcentrator/list',
    method: 'get',
    params: query
  })
}

// 查询电-集中器管理详细
export function getElectricityConcentrator(id) {
  return request({
    url: '/basedata/electricityConcentrator/' + id,
    method: 'get'
  })
}

// 新增电-集中器管理
export function addElectricityConcentrator(data) {
  return request({
    url: '/basedata/electricityConcentrator',
    method: 'post',
    data: data
  })
}

// 修改电-集中器管理
export function updateElectricityConcentrator(data) {
  return request({
    url: '/basedata/electricityConcentrator',
    method: 'put',
    data: data
  })
}

// 删除电-集中器管理
export function delElectricityConcentrator(id) {
  return request({
    url: '/basedata/electricityConcentrator/' + id,
    method: 'delete'
  })
}

// 集中器下拉框数据
export function concentratorOption() {
  return request({
    url: '/basedata/electricityConcentrator/all',
    method: 'get'
  })
}

// 集中器命令下发
export function sendCommand(data) {
  return request({
    url: '/basedata/electricityConcentrator/sendCommand',
    method: 'post',
    data: data
  })
}
// 获取记录
export function getFeedbackLog(query){
  return request({
    url: '/basedata/electricityConcentrator/list',
    method: 'get',
    params: query
  })
}
// 集中器绑定户表
export function bindTerminalsXb(query){
  return request({
    url: 'basedata/electricityConcentrator/bindTerminalsXb',
    method: 'post',
    data: query
  })
}
